package com.time.hellotime.db.model;


import com.time.hellotime.servermodel.dynamics.Pic;

import org.litepal.crud.DataSupport;

import java.io.Serializable;

/**
 * 图片数据表
 * Created by Bing on 2017/7/27.
 * E-mail is tx16bing@163.com
 */

public class PicModel extends DataSupport implements Serializable {

    private static final long serialVersionUID = -4243357488988840130L;

    private String topicId;

    private String picId;

    private String picAddr;

    private String thumbPicAddr;

    public PicModel() {
        // Nothing to do
    }

    public PicModel(Pic pic) {
        this.topicId = pic.getTopicId();
        this.picId = pic.getId();
        this.picAddr = pic.getPicAddr();
        this.thumbPicAddr = pic.getThumbPicAddr();
    }

    public String getTopicId() {
        return topicId;
    }

    public void setTopicId(String topicId) {
        this.topicId = topicId;
    }

    public String getPicId() {
        return picId;
    }

    public void setPicId(String picId) {
        this.picId = picId;
    }

    public String getPicAddr() {
        return picAddr;
    }

    public void setPicAddr(String picAddr) {
        this.picAddr = picAddr;
    }

    public String getThumbPicAddr() {
        return thumbPicAddr;
    }

    public void setThumbPicAddr(String thumbPicAddr) {
        this.thumbPicAddr = thumbPicAddr;
    }

    @Override
    public String toString() {
        return "PicModel{" +
                "topicId='" + topicId + '\'' +
                ", picId='" + picId + '\'' +
                ", picAddr='" + picAddr + '\'' +
                ", thumbPicAddr='" + thumbPicAddr + '\'' +
                '}';
    }
}
